package com.test.mooan.labama.bean_boom.user_info_boom;

import com.google.gson.Gson;
import com.test.mooan.labama.utils_boom.Stringutil_boom;

import org.json.JSONObject;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;


public class LnApplyDetailInfo_boom {

    private static class Inner {
        private static LnApplyDetailInfo_boom instance = new LnApplyDetailInfo_boom();
    }

    private LnApplyDetailInfo_boom() {}

    public static LnApplyDetailInfo_boom getInstance() {
        return Inner.instance;
    }

    private String days;
    private String amount;
    private String interest;
    private String interestAndServiceFee;
    private String processingFee;
    private String repayProFee;
    private String interestRate;
    private String realAmount;
    private String repayAmount;
    private String overdueRate;
    private String bankAccount;//尼日、乌干达、肯尼亚
    private String walletMobile;//加纳
    private String fraudRemindNor;
    private String fraudRemindBold;
    private String selectAmountFlag;
    //科特VAT
    private String processingVatFee;
    private String repayProVatFee;
    //货币单位
    private String currency;

    private List<Map<String,String>> detailItemList;

    public static void parse(JSONObject objJson_pretfacile) {
        Inner.instance = new Gson().fromJson(objJson_pretfacile.toString(), LnApplyDetailInfo_boom.class);
    }

    public String gDays() {
        return Stringutil_boom.getSafeString(days);
    }

    public String gAmount() {
        return Stringutil_boom.getSafeString(amount);
    }

    public String gBankAccount() {
        return Stringutil_boom.getSafeString(bankAccount);
    }

    public String gWalletMobile() {
        return Stringutil_boom.getSafeString(walletMobile);
    }

    public String gCurrency() {
        return Stringutil_boom.getSafeString(currency);
    }

    public List<Map<String,String>> gDetailItemList(){
        if (detailItemList == null) return new ArrayList<>();
        return detailItemList;
    }

}
